#include<iostream>

using namespace std;

int main()
{
    int a[3][4];
    
    a[0][0] = 1;
    a[0][1] = 2;
    a[0][2] = 3;
    a[0][3] = 4;
    a[1][0] = 5;
    a[1][1] = 6;

    cout << a[0][0] << " " ;
    cout << a[0][1] << " " ;
    cout << a[0][2]  << " " ;
    cout << a[0][3]  << " " ;
    cout << a[1][0]  << " " ;
    cout << a[1][1] << " "  ;
    cout << endl;

    for(int i = 0; i < 3; i++)
    {
        for(int j = 0; j < 4; j++)
        {
            cout << a[i][j] << " ";
        }
        cout << endl;
    }
    
    cout << "arr2:" << endl;
    int    arr2[2] [3]  =
    {
        {1,2,3},
        {4,5,6}
    };
    
    for(int i = 0; i < 2; i++)
    {
        for(int j = 0; j < 3; j++)
        {
            cout << arr2[i][j] << " ";
        }
        cout << endl;
    }

    cout << "arr3:" << endl;
    int arr3[2][3] = {1,2,3,4,5,6  };
    for(int i = 0; i < 2; i++)
    {
        for(int j = 0; j < 3; j++)
        {
            cout << arr3[i][j] << " ";
        }
        cout << endl;
    }

    cout << "arr4:" << endl;
    int arr4[][3] = {1,2,3,4,5,6};
     for(int i = 0; i < 2; i++)
    {
        for(int j = 0; j < 3; j++)
        {
            cout << arr4[i][j] << " ";
        }
        cout << endl;
    }
    return 0;
    
}